<?php

use Illuminate\Database\Seeder;

use App\Models\Channel;
class ChannelSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $arr_Data = [];

        for($i = 10000;$i < 10100;$i++){
            $map_Data = [
                'code'=> 'didi',
                'no' => $i,
                'channel_provider_id' => 1,
                'channel_provider_name' => '滴滴打车',
                'cooperation' => 1,
                'target' => 1,
                'start_date' => '2016-12-21',
                'end_date' => '2016-12-22',
                'contract_type' => 1,
                'contract_amount' => $i,
                'real_amount' => rand(1,$i),
                'expections' => '',
                'check_status' => 1,
                'open_status' => 1,
                'settlement_status' => 1,
                'settlement_mark' => ''
            ];
            $arr_Data[] = $map_Data;
        }
        $channel = new Channel();
        $channel->insert($arr_Data);
    }
}
